# If KERNELRELEASE is defined, we've been invoked from the 
# kernel build system adn can use its language.
ifneq ($(KERNELRELEASE), )
	obj-m := irqhook.o

# Otherwise we were called directly from the command
# li#ne; invoke the kernel build system
else
#	KERNELDIR ?= /home/hitomi/cf_boot/linux-2.6.16.2
	KERNELDIR ?= /home/matsu/work/preempt/preemptRT-SH/kernel/linux-2.6.14-rt22_sh
	PWD := $(shell pwd)

default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

endif

clean:
	rm -f *.o *.ko *.mod.c
